home *** CD-ROM | disk | FTP | other *** search
/ Safarir 3 / SafTV-CD3.iso / pc / Bonus / Dessins Animés / static / jeux / napman.swf / scripts / frame_335 / DoAction.as
Text File  |  2001-11-21  |  925b  |  49 lines

  1. if("1" < timer and timer < "45")
  2. {
  3.    tellTarget("/f" add fanta)
  4.    {
  5.       gotoAndStop(10);
  6.    }
  7.    if(timer < "7")
  8.    {
  9.       tellTarget("/suoni")
  10.       {
  11.          gotoAndStop("stopfda");
  12.          play();
  13.       }
  14.    }
  15. }
  16. else
  17. {
  18.    xv = eval("f" add fanta add "vx");
  19.    yv = eval("f" add fanta add "vy");
  20.    if(xv == "1" and yv == "0")
  21.    {
  22.       tellTarget("/f" add fanta)
  23.       {
  24.          gotoAndStop("2" + "4" * eval("/:status"));
  25.       }
  26.    }
  27.    if(xv == "-1" and yv == "0")
  28.    {
  29.       tellTarget("/f" add fanta)
  30.       {
  31.          gotoAndStop("1" + "4" * eval("/:status"));
  32.       }
  33.    }
  34.    if(xv == "0" and yv == "1")
  35.    {
  36.       tellTarget("/f" add fanta)
  37.       {
  38.          gotoAndStop("3" + "4" * eval("/:status"));
  39.       }
  40.    }
  41.    if(xv == "0" and yv == "-1")
  42.    {
  43.       tellTarget("/f" add fanta)
  44.       {
  45.          gotoAndStop("4" + "4" * eval("/:status"));
  46.       }
  47.    }
  48. }
  49.